package com.jumper.study.common.dto;

public class PageSearchReq {
    protected Long page;

    protected Long limit;

    public Long getPage() {
        return Math.max(1l, page);
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public Long getLimit() {
        if (limit == null) {
            limit = 10l;
        }
        return limit;
    }

    public void setLimit(Long limit) {
        this.limit = limit;
    }

}
